package router

import (
	"i18n-template/controller"
	"i18n-template/middleware"

	"github.com/gin-gonic/gin"
)

func UseUserRouter(group *gin.RouterGroup) {
	group.POST("", controller.GenerateUserController())
	group.GET("", controller.FindUserController())
	group.PATCH("", middleware.AuthMiddleware(), controller.PatchUserController())
	group.DELETE("", middleware.AuthMiddleware(), controller.DeleteUserController())
	group.POST("/login", controller.PostLoginUserController())
}
